home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
050
/
madtrb8.arc
/
FREESPAC.INC
< prev
next >
Wrap
Text File
|
1985-02-23
|
678b
|
21 lines
Procedure free_space(drive_letter : char);
var
dl,pos : integer;
begin
drive_letter := upcase(drive_letter);
case drive_letter of
'A'..'H' : begin
dl := ord(drive_letter)-ord('A')+1;
pos := dl * 9 - 8;
drawbox (pos,1,pos+8,5,white,black,'[ '+drive_letter+' ]');
R.ax :=$36 shl 8; { disk free space }
R.dx := dl;
MsDos(R);
bts := r.bx; bts := bts * 1024;
writeln (' ',r.bx,'k');
writeln (' O');
write (' |');
end;
end; { case }
end;